package com.per.mybootall.pojo;

import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.Date;
@Component

public class Order {
    private Integer id;

    private Integer productId;

    private Integer productNumber;

    private BigDecimal allnumberPay;

    private Long userId;

    private Integer orderEtat;

    private Integer payWhat;

    private Date creatTime;

    private Date updataTime;

    public Order(Integer id, Integer productId, Integer productNumber, BigDecimal allnumberPay, Long userId, Integer orderEtat, Integer payWhat, Date creatTime, Date updataTime) {
        this.id = id;
        this.productId = productId;
        this.productNumber = productNumber;
        this.allnumberPay = allnumberPay;
        this.userId = userId;
        this.orderEtat = orderEtat;
        this.payWhat = payWhat;
        this.creatTime = creatTime;
        this.updataTime = updataTime;
    }

    public Order() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getProductNumber() {
        return productNumber;
    }

    public void setProductNumber(Integer productNumber) {
        this.productNumber = productNumber;
    }

    public BigDecimal getAllnumberPay() {
        return allnumberPay;
    }

    public void setAllnumberPay(BigDecimal allnumberPay) {
        this.allnumberPay = allnumberPay;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getOrderEtat() {
        return orderEtat;
    }

    public void setOrderEtat(Integer orderEtat) {
        this.orderEtat = orderEtat;
    }

    public Integer getPayWhat() {
        return payWhat;
    }

    public void setPayWhat(Integer payWhat) {
        this.payWhat = payWhat;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public Date getUpdataTime() {
        return updataTime;
    }

    public void setUpdataTime(Date updataTime) {
        this.updataTime = updataTime;
    }
}